<style>
    /* .pagination li {
        width: 20px;
        height: 18px;
        background-color: red;
        float: left;
        line-height: 18px;
        color: red;
        border: 1px solid blue;
        margin-left: 10px;
    }
    
    .pagination li a {
        color: blue;
        padding: 0;
    } */
</style>
<!-- 右 -->
<div class="content">
    <div class="header">
        <h1 class="page-title">商品列表</h1>
    </div>

    <div class="well">
        <!-- search button -->
        <form action="{:url('admin/goods/index')}" method="get" class="form-search">
            <div class="row-fluid" style="text-align: left;">
                <div class="pull-left span4 unstyled">
                    <p> 商品名称：<input class="input-medium" name="keyword" type="text" value="{$Request.param.keyword}"></p>
                </div>
            </div>
            <button type="submit" class="btn">查找</button>
            <a class="btn btn-primary" href="{:url('admin/goods/add')}">新增</a>
        </form>
    </div>
    <div class="well">
        <!-- table -->
        <table class="table table-bordered table-hover table-condensed">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>商品名称</th>
                    <th>商品价格</th>
                    <th>商品数量</th>
                    <th>商品logo</th>
                    <th>添加时间</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <!-- <tr class="success">
                    <td>1</td>
                    <td><a href="javascript:void(0);">宏辉果蔬 苹果 烟台红富士 12枚75mm 单果约170-190g 总重4.2斤</a></td>
                    <td>23.90</td>
                    <td>100</td>
                    <td><img src="/static/admin/img/goods01_thumb.jpg"></td>
                    <td>2017-04-01 08:00:00</td>
                    <td></td>
                    <td>
                        <a href="javascript:void(0);"> 编辑 </a>
                        <a href="javascript:void(0);" onclick="if(confirm('确认删除？')) location.href='#'"> 删除 </a>
                    </td>
                </tr> -->
                {volist name='list' id='value'}
                <tr class="error">
                    <td>{$value.id}</td>
                    <td><a href="read?id={$value.id}">{$value.goods_name}</a></td>
                    <td>{$value.goods_price}</td>
                    <td>{$value.goods_number}</td>
                    <td><img src="{$value.goods_logo}"></td>
                    <td>{$value.create_time}</td>
                    <td>
                        <td>
                            <a href="edit?id={$value.id}"> 编辑 </a>
                            <a href="delect?id={$value.id}}" onclick="if(confirm('确认删除？')) location.href='#'"> 删除 </a>
                        </td>
                    </td>
                </tr>
                {/volist}
                <!-- <tr class="warning">
                    <td>3</td>
                    <td><a href="javascript:void(0);">玖原农珍 广西百香果 3斤水果 大果约80-90g </a></td>
                    <td>35.80</td>
                    <td>100</td>
                    <td><img src="/static/admin/img/goods03_thumb.jpg">
                    </td>
                    <td>2017-04-01 08:00:00</td>
                    <td></td>
                    <td>
                        <a href="javascript:void(0);"> 编辑 </a>
                        <a href="javascript:void(0);" onclick="if(confirm('确认删除？')) location.href='#'"> 删除 </a>
                    </td>
                </tr>
                <tr class="info">
                    <td>4</td>
                    <td><a href="javascript:void(0);">三只松鼠 坚果炒货 零食奶油味 碧根果225g/袋</a></td>
                    <td>22.90</td>
                    <td>300</td>
                    <td><img src="/static/admin/img/goods04_thumb.jpg"></td>
                    <td>2017-04-01 08:00:00</td>
                    <td></td>
                    <td>
                        <a href="javascript:void(0);"> 编辑 </a>
                        <a href="javascript:void(0);" onclick="if(confirm('确认删除？')) location.href='#'"> 删除 </a>
                    </td>
                </tr> -->
            </tbody>
        </table>
        <!-- pagination -->
        <div class="pagination">
            <!-- <ul>
                <li><a href="#">Prev</a></li>
                <li><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">Next</a></li>
            </ul> -->
            {$list|raw}

        </div>
    </div>

    <!-- footer -->
    <footer>
        <hr>
        <p>© 2017 <a href="javascript:void(0);" target="_blank">ADMIN</a></p>
    </footer>
</div>
</body>

</html>